import numpy as np


def gen_golden_data_sinc():
    # 生成随机输入数据
    x = np.random.uniform(-100, 100, [2048]).astype(np.float32)
    print(x)
    golden = (np.sin(x*np.pi)/np.pi/x).astype(np.float32)

    x.tofile("./input/input_x.bin")
    golden.tofile("./output/golden.bin")


if __name__ == "__main__":
    gen_golden_data_sinc()
